home *** CD-ROM | disk | FTP | other *** search
/ CD School House 9 / CD School House 9.0 - Wayzata Technology (1994).iso / pc / games / mac / __adventureland__ / __adventure_helpers__ / dungeon_mastery_2_0 / dm_reference / background_8116.txt < prev    next >
Text File  |  1992-05-24  |  10KB  |  487 lines

  1. -- background: 8116 from stack: in
  2. -- bmap block id: 9312
  3. -- flags: 0000
  4. -- background id: 0
  5. -- name: cWiz
  6. ----- HyperTalk script -----
  7. on newcard
  8.   click at the loc of field "Name"
  9. end newcard
  10.  
  11. on idle
  12.   if the selectedField is empty then
  13.     get the scroll of field "Title"
  14.     align it
  15.   end if
  16.   pass idle
  17. end idle
  18.  
  19. on align it
  20.   set scroll of field "Title" to it
  21.   set scroll of field "Range" to it
  22.   set scroll of field "Duration" to it
  23.   set scroll of field "Area" to it
  24.   set scroll of field "Notes" to it
  25. end align
  26.  
  27. on tabkey
  28.   put the number of the target into tgt
  29.   if tgt<7 then
  30.     select line (word 2 of the selectedline) of field (tgt+1)
  31.   else if tgt=7 then
  32.     put (word 2 of the selectedline)+1 into ln
  33.     select line ln of field "Title"
  34.     get the scroll of field "Title"
  35.     align it
  36.     select line ln of field "Title"
  37.   else pass tabkey
  38. end tabkey
  39.  
  40. on returnInField
  41.   send returnInField to hypercard
  42.   put the number of the target into tgt
  43.   if tgt>2 and tgt<8 then
  44.     put word 2 of the selectedline into ln
  45.     get the scroll of the target
  46.     align it
  47.     select before character 1 of line ln of the target
  48.   end if
  49. end returnInField
  50.  
  51.  
  52. -- part 6 (button)
  53. -- low flags: 00
  54. -- high flags: 0000
  55. -- rect: left=401 top=50 right=82 bottom=433
  56. -- title width / last selected line: 0
  57. -- icon id / first selected line: 0 / 0
  58. -- text alignment: 1
  59. -- font id: 0
  60. -- text size: 12
  61. -- style flags: 0
  62. -- line height: 16
  63. -- part name: Flip
  64. ----- HyperTalk script -----
  65. on mousedown
  66.   gonext
  67. end mousedown
  68.  
  69. on mousestilldown
  70.   gonext
  71. end mousestilldown
  72.  
  73.  
  74.  
  75. -- part 27 (button)
  76. -- low flags: 00
  77. -- high flags: 0000
  78. -- rect: left=0 top=43 right=339 bottom=23
  79. -- title width / last selected line: 0
  80. -- icon id / first selected line: 0 / 0
  81. -- text alignment: 1
  82. -- font id: 0
  83. -- text size: 12
  84. -- style flags: 0
  85. -- line height: 16
  86. -- part name: New Button
  87. ----- HyperTalk script -----
  88. on mousedown
  89.   goprev
  90. end mousedown
  91.  
  92. on mousestilldown
  93.   goprev
  94. end mousestilldown
  95.  
  96.  
  97.  
  98. -- part 158 (field)
  99. -- low flags: 03
  100. -- high flags: 0002
  101. -- rect: left=38 top=67 right=80 bottom=77
  102. -- title width / last selected line: 0
  103. -- icon id / first selected line: 0 / 0
  104. -- text alignment: 1
  105. -- font id: 21
  106. -- text size: 9
  107. -- style flags: 0
  108. -- line height: 12
  109. -- part name: Cat3
  110. ----- HyperTalk script -----
  111. on mousedown
  112.   global MagicMenu
  113.   get PopupMenu(MagicMenu,chkitm,68,39)
  114.   if it is not 0 then put line it of MagicMenu into me
  115.   set the name of this card to me
  116. end mousedown
  117.  
  118.  
  119. -- part 86 (field)
  120. -- low flags: 02
  121. -- high flags: 4000
  122. -- rect: left=76 top=65 right=82 bottom=368
  123. -- title width / last selected line: 0
  124. -- icon id / first selected line: 0 / 0
  125. -- text alignment: 0
  126. -- font id: 21
  127. -- text size: 12
  128. -- style flags: 0
  129. -- line height: 16
  130. -- part name: Name3
  131.  
  132.  
  133. -- part 154 (field)
  134. -- low flags: 00
  135. -- high flags: 0007
  136. -- rect: left=34 top=94 right=330 bottom=137
  137. -- title width / last selected line: 0
  138. -- icon id / first selected line: 0 / 0
  139. -- text alignment: 0
  140. -- font id: 21
  141. -- text size: 9
  142. -- style flags: 0
  143. -- line height: 12
  144. -- part name: Title
  145. ----- HyperTalk script -----
  146. on mouseleave
  147.   get the scroll of the target
  148.   align it
  149. end mouseleave
  150.  
  151.  
  152.  
  153. -- part 163 (button)
  154. -- low flags: 00
  155. -- high flags: 2000
  156. -- rect: left=468 top=28 right=55 bottom=507
  157. -- title width / last selected line: 0
  158. -- icon id / first selected line: 0 / 0
  159. -- text alignment: 1
  160. -- font id: 0
  161. -- text size: 12
  162. -- style flags: 0
  163. -- line height: 16
  164. -- part name: 
  165. ----- HyperTalk script -----
  166. on mouseUp
  167.   godm
  168. end mouseUp
  169.  
  170.  
  171.  
  172. -- part 164 (button)
  173. -- low flags: 00
  174. -- high flags: 2000
  175. -- rect: left=468 top=56 right=83 bottom=507
  176. -- title width / last selected line: 0
  177. -- icon id / first selected line: 0 / 0
  178. -- text alignment: 1
  179. -- font id: 0
  180. -- text size: 12
  181. -- style flags: 0
  182. -- line height: 16
  183. -- part name: 
  184. ----- HyperTalk script -----
  185. on mouseUp
  186.   goadv
  187. end mouseUp
  188.  
  189.  
  190.  
  191. -- part 165 (button)
  192. -- low flags: 00
  193. -- high flags: 2000
  194. -- rect: left=468 top=84 right=111 bottom=507
  195. -- title width / last selected line: 0
  196. -- icon id / first selected line: 0 / 0
  197. -- text alignment: 1
  198. -- font id: 0
  199. -- text size: 12
  200. -- style flags: 0
  201. -- line height: 16
  202. -- part name: 
  203. ----- HyperTalk script -----
  204. on mouseUp
  205.   goenc
  206. end mouseUp
  207.  
  208.  
  209.  
  210. -- part 166 (button)
  211. -- low flags: 00
  212. -- high flags: 2000
  213. -- rect: left=468 top=112 right=139 bottom=507
  214. -- title width / last selected line: 0
  215. -- icon id / first selected line: 0 / 0
  216. -- text alignment: 1
  217. -- font id: 0
  218. -- text size: 12
  219. -- style flags: 0
  220. -- line height: 16
  221. -- part name: 
  222. ----- HyperTalk script -----
  223. on mouseUp
  224.   gocom
  225. end mouseUp
  226.  
  227.  
  228.  
  229. -- part 167 (button)
  230. -- low flags: 00
  231. -- high flags: 2000
  232. -- rect: left=468 top=140 right=167 bottom=507
  233. -- title width / last selected line: 0
  234. -- icon id / first selected line: 0 / 0
  235. -- text alignment: 1
  236. -- font id: 0
  237. -- text size: 12
  238. -- style flags: 0
  239. -- line height: 16
  240. -- part name: 
  241. ----- HyperTalk script -----
  242. on mouseUp
  243.   goexp
  244. end mouseUp
  245.  
  246.  
  247.  
  248. -- part 168 (button)
  249. -- low flags: 00
  250. -- high flags: 2000
  251. -- rect: left=468 top=308 right=335 bottom=507
  252. -- title width / last selected line: 0
  253. -- icon id / first selected line: 0 / 0
  254. -- text alignment: 1
  255. -- font id: 0
  256. -- text size: 12
  257. -- style flags: 0
  258. -- line height: 16
  259. -- part name: 
  260. ----- HyperTalk script -----
  261. on mouseUp
  262.   gocal
  263. end mouseUp
  264.  
  265.  
  266.  
  267. -- part 169 (button)
  268. -- low flags: 00
  269. -- high flags: 2000
  270. -- rect: left=468 top=168 right=195 bottom=507
  271. -- title width / last selected line: 0
  272. -- icon id / first selected line: 0 / 0
  273. -- text alignment: 1
  274. -- font id: 0
  275. -- text size: 12
  276. -- style flags: 0
  277. -- line height: 16
  278. -- part name: aHero
  279. ----- HyperTalk script -----
  280. on mouseUp
  281.   gohero
  282. end mouseUp
  283.  
  284.  
  285.  
  286. -- part 170 (button)
  287. -- low flags: 00
  288. -- high flags: 2000
  289. -- rect: left=468 top=196 right=223 bottom=507
  290. -- title width / last selected line: 0
  291. -- icon id / first selected line: 0 / 0
  292. -- text alignment: 1
  293. -- font id: 0
  294. -- text size: 12
  295. -- style flags: 0
  296. -- line height: 16
  297. -- part name: bMnstr
  298. ----- HyperTalk script -----
  299. on mouseUp
  300.   gomnstr
  301. end mouseUp
  302.  
  303.  
  304.  
  305. -- part 171 (button)
  306. -- low flags: 00
  307. -- high flags: 2000
  308. -- rect: left=468 top=224 right=251 bottom=507
  309. -- title width / last selected line: 0
  310. -- icon id / first selected line: 0 / 0
  311. -- text alignment: 1
  312. -- font id: 0
  313. -- text size: 12
  314. -- style flags: 0
  315. -- line height: 16
  316. -- part name: cwiz
  317. ----- HyperTalk script -----
  318. on mouseUp
  319.   gowiz
  320. end mouseUp
  321.  
  322.  
  323.  
  324. -- part 172 (button)
  325. -- low flags: 00
  326. -- high flags: 2000
  327. -- rect: left=468 top=280 right=307 bottom=507
  328. -- title width / last selected line: 0
  329. -- icon id / first selected line: 0 / 0
  330. -- text alignment: 1
  331. -- font id: 0
  332. -- text size: 12
  333. -- style flags: 0
  334. -- line height: 16
  335. -- part name: 
  336. ----- HyperTalk script -----
  337. on mouseUp
  338.   goutil
  339. end mouseUp
  340.  
  341.  
  342.  
  343. -- part 173 (button)
  344. -- low flags: 00
  345. -- high flags: 2000
  346. -- rect: left=468 top=252 right=279 bottom=507
  347. -- title width / last selected line: 0
  348. -- icon id / first selected line: 0 / 0
  349. -- text alignment: 1
  350. -- font id: 0
  351. -- text size: 12
  352. -- style flags: 0
  353. -- line height: 16
  354. -- part name: eItem
  355. ----- HyperTalk script -----
  356. on mouseUp
  357.   goitm
  358. end mouseUp
  359.  
  360.  
  361.  
  362. -- part 180 (field)
  363. -- low flags: 00
  364. -- high flags: 0007
  365. -- rect: left=136 top=94 right=330 bottom=204
  366. -- title width / last selected line: 0
  367. -- icon id / first selected line: 0 / 0
  368. -- text alignment: 1
  369. -- font id: 21
  370. -- text size: 9
  371. -- style flags: 0
  372. -- line height: 12
  373. -- part name: Range
  374. ----- HyperTalk script -----
  375. on mouseleave
  376.   get the scroll of the target
  377.   align it
  378. end mouseleave
  379.  
  380.  
  381.  
  382. -- part 185 (field)
  383. -- low flags: 00
  384. -- high flags: 0007
  385. -- rect: left=187 top=94 right=330 bottom=257
  386. -- title width / last selected line: 0
  387. -- icon id / first selected line: 0 / 0
  388. -- text alignment: 1
  389. -- font id: 21
  390. -- text size: 9
  391. -- style flags: 0
  392. -- line height: 12
  393. -- part name: Duration
  394. ----- HyperTalk script -----
  395. on mouseleave
  396.   get the scroll of the target
  397.   align it
  398. end mouseleave
  399.  
  400.  
  401.  
  402. -- part 186 (field)
  403. -- low flags: 00
  404. -- high flags: 0007
  405. -- rect: left=240 top=94 right=330 bottom=308
  406. -- title width / last selected line: 0
  407. -- icon id / first selected line: 0 / 0
  408. -- text alignment: 1
  409. -- font id: 21
  410. -- text size: 9
  411. -- style flags: 0
  412. -- line height: 12
  413. -- part name: Area
  414. ----- HyperTalk script -----
  415. on mouseleave
  416.   get the scroll of the target
  417.   align it
  418. end mouseleave
  419.  
  420.  
  421.  
  422. -- part 187 (field)
  423. -- low flags: 00
  424. -- high flags: 0007
  425. -- rect: left=291 top=94 right=330 bottom=433
  426. -- title width / last selected line: 0
  427. -- icon id / first selected line: 0 / 0
  428. -- text alignment: 1
  429. -- font id: 21
  430. -- text size: 9
  431. -- style flags: 0
  432. -- line height: 12
  433. -- part name: Notes
  434. ----- HyperTalk script -----
  435. on mouseleave
  436.   get the scroll of the target
  437.   align it
  438. end mouseleave
  439.  
  440.  
  441.  
  442. -- part 181 (button)
  443. -- low flags: 00
  444. -- high flags: 0002
  445. -- rect: left=417 top=91 right=331 bottom=433
  446. -- title width / last selected line: 0
  447. -- icon id / first selected line: 0 / 0
  448. -- text alignment: 1
  449. -- font id: 0
  450. -- text size: 12
  451. -- style flags: 0
  452. -- line height: 16
  453. -- part name: 
  454.  
  455.  
  456. -- part 182 (button)
  457. -- low flags: 00
  458. -- high flags: 0001
  459. -- rect: left=418 top=88 right=342 bottom=432
  460. -- title width / last selected line: 0
  461. -- icon id / first selected line: 0 / 0
  462. -- text alignment: 1
  463. -- font id: 0
  464. -- text size: 12
  465. -- style flags: 0
  466. -- line height: 16
  467. -- part name: 
  468.  
  469.  
  470. -- part 188 (button)
  471. -- low flags: 00
  472. -- high flags: 0000
  473. -- rect: left=377 top=61 right=82 bottom=398
  474. -- title width / last selected line: 0
  475. -- icon id / first selected line: 0 / 0
  476. -- text alignment: 1
  477. -- font id: 0
  478. -- text size: 12
  479. -- style flags: 0
  480. -- line height: 16
  481. -- part name: help
  482. ----- HyperTalk script -----
  483. on mouseUp
  484.   gohelp "magic Help"
  485. end mouseUp
  486.  
  487.